package cc.edge2.sns.models;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class FriendRelation {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long friendRelationId;
    @Persistent
	private Long userId1;
    @Persistent
	private Long userId2;
	public Long getFriendRelationId() {
		return friendRelationId;
	}
	public void setFriendRelationId(Long friendRelationId) {
		this.friendRelationId = friendRelationId;
	}
	public Long getUserId1() {
		return userId1;
	}
	public void setUserId1(Long userId1) {
		this.userId1 = userId1;
	}
	public Long getUserId2() {
		return userId2;
	}
	public void setUserId2(Long userId2) {
		this.userId2 = userId2;
	}
	public FriendRelation() {
		super();
	}
	public FriendRelation(Long userId1, Long userId2) {
		super();
		this.userId1 = userId1;
		this.userId2 = userId2;
	}
}
